package com.bgs.eat.commodityOrder.service.impl;

import com.bgs.eat.commodityOrder.entity.CommodityOrderDistributionMode;
import com.bgs.eat.commodityOrder.mapper.CommodityOrderDistributionModeMapper;
import com.bgs.eat.commodityOrder.service.CommodityOrderDistributionModeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName CommodityOrderDistributionModeServiceImpl
 * @Description TODO
 * @Author G胖
 * @Date 2022-11-01 下午 07:35
 **/
@Service
public class CommodityOrderDistributionModeServiceImpl implements CommodityOrderDistributionModeService {

    @Resource
    CommodityOrderDistributionModeMapper commodityOrderDistributionModeMapper;

    /**
     * @Author gpd
     * @Description  查询对应的配送方式
     * @Date 2022-11-01 下午 07:40
     * @Return com.bgs.eat.config.CommonResult

     */
    @Override
    public CommodityOrderDistributionMode getOrderDistributionMode(Integer id) {
        CommodityOrderDistributionMode commodityOrderDistributionMode = new CommodityOrderDistributionMode();
        commodityOrderDistributionMode.setId(id);
        return commodityOrderDistributionModeMapper.selectOne(commodityOrderDistributionMode);
    }
}
